
var baseUrl,apiUrl,resUrl,wxWebAuthUrl,wsUrl;
switch (process.env.srconfig){
  case 'dev'://内网开发
    baseUrl = 'https://pppc.frp.chually.cn';
    resUrl = 'https://minio.frp.chually.cn';
    wsUrl = 'ws://192.168.100.198:18091/boot/socket';
    break;
  case 'release'://生产环境
    baseUrl = 'http://pppc.frp.chually.cn';
    resUrl = 'http://minio.frp.chually.cn';
    wsUrl = 'ws://192.168.100.198:18091/boot/socket';
    break;
  case 'test'://测试环境
    baseUrl = 'https://pppc.maxwoods.net';
    resUrl = 'http://pppc.maxwoods.net:9000';
    break;
  default://默认本地开发
    baseUrl = 'https://pppc.frp.chually.cn';
    resUrl = 'https://minio.frp.chually.cn';
    wsUrl = 'ws://192.168.100.198:18091/boot/socket';
    break;
}
apiUrl = baseUrl+ '/pppc-bs';
wxWebAuthUrl = baseUrl+ '/pppc-shop/';

export let ipconfig={
  baseUrl:baseUrl,
  //api接口访问路径
  apiUrl: apiUrl,
  //图片、视频、音频等资源访问路径
  resUrl: resUrl,
  wxWebAuthUrl: wxWebAuthUrl,
  wsUrl:wsUrl,
};
